﻿
Partial Class WebForm_CommonControl_SaveToolBar
    Inherits System.Web.UI.UserControl

    Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
        RaiseEvent Saving(Me, New EventArgs)

        Me.RaiseBubbleEvent(sender, e)
    End Sub

    Protected Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click
        RaiseEvent Canceling(Me, New EventArgs)

        Me.RaiseBubbleEvent(sender, e)
    End Sub
End Class

Partial Class WebForm_CommonControl_SaveToolBar
    Public Property ConfirmText() As String
        Get
            Return Me.cbSave.ConfirmText
        End Get
        Set(ByVal value As String)
            Me.cbSave.ConfirmText = value
        End Set
    End Property

    Public Property ValidationGroup() As String
        Get
            Return ViewState("ValidationGroup")
        End Get
        Set(ByVal value As String)
            Me.btnSave.ValidationGroup = value
        End Set
    End Property

    Public Event Saving(ByVal source As Object, ByVal e As EventArgs)
    Public Event Canceling(ByVal source As Object, ByVal e As EventArgs)
End Class
